package com.nifostasky.comic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nifostasky.comic.entitys.SysMenu;
import com.nifostasky.comic.entitys.SysRole;
import com.nifostasky.comic.entitys.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 系统用户信息表 Mapper 接口
 * </p>
 *
 * @author yuanBo.Wu
 * @since 2021-06-07
 */
@Mapper
@Repository
@Primary
public interface SysUserMapper extends BaseMapper<SysUser> {


    List<SysRole> findRoleByUserId(@Param("sysUserId") Long sysUserId);


    List<SysMenu> findMenuByRoleId(@Param("roleId") Long roleId);

    Integer restPassWordById(@Param("id") Long id,@Param("salt") String salt,@Param("passWord") String passWord);
//
//    List<SysUser> getUserList(@Param("unitCode") String unitCode);
//
//    List<Map<String, Object>> getGroupList(@Param("unitCode") String unitCode, @Param("groupLeaderNum") Long groupLeaderNum,@Param("memberFlag") Integer memberFlag);
//
//    List<Map<String, Object>> findTeamLeader(@Param("str") StringBuilder str);
//
//    List<Map<String, Object>> findMechanismList(@Param("str") StringBuilder str);
}
